<?php

Raise::load('core.RaiseCache');

/**
 * RaiseObjectCache class
 * loads or save an object
 *
 * @author Sam-Mauris Yong <hellclanner at live dot com>
 * @license http://www.opensource.org/licenses/bsd-license New BSD License
 * @package Raise.Core.Caching
 * @since 1.2
 */
class RaiseObjectCache extends RaiseCache {

    /**
     * The object to load
     * @return object
     */
    public function load() {
        return unserialize(parent::load());
    }

    /**
     * The object to save
     * @param object $c
     */
    public function save($c) {
        parent::save(serialized($c));
    }


}
